import request from "@/utils/request";

//预报列表-列表
export const predictionList = (data) =>
  request({
    url: `/out/prediction/index`,
    method: "post",
    data,
  });
export const predictionListdetails = (data) =>
  request({
    url: `/out/prediction/index-details`,
    method: "post",
    data,
  });
//预报列表-详情
export const predictionDetail = (params) =>
  request({
    url: `/out/prediction/detail`,
    method: "get",
    params,
  });
//预报列表-新增
export const predictionAdd = (data) =>
  request({
    url: `/out/prediction/create`,
    method: "post",
    data,
  });
//预报列表-编辑
export const predictionUpdate = (data) =>
  request({
    url: `/out/prediction/update`,
    method: "post",
    data,
  });
//预报列表-提交
export const predictionSubmit = (data) =>
  request({
    url: `/out/prediction/submit`,
    method: "post",
    data,
  });

//预报列表-作废
export const predictionCancel = (data) =>
  request({
    url: `/out/prediction/cancel`,
    method: "post",
    data,
  });
//预报列表-复核
export const predictionAudit = (data) =>
  request({
    url: `/out/prediction/audit`,
    method: "post",
    data,
  });
//预报列表-反审
export const predictionFs = (data) =>
  request({
    url: `/out/prediction/fs`,
    method: "post",
    data,
  });
//预报列表-上传报关文件
export const predictionUpload = (data) =>
  request({
    url: `/out/prediction/upload-declare-file`,
    method: "post",
    data,
  });

//预报列表-上传匹配报关信息
export const predictionImport = (data) =>
  request({
    url: `/out/prediction/import-dm-details`,
    method: "post",
    data,
  });

//预报列表-获取数据匹配详情
export const predictionDmDetails = (params) =>
  request({
    url: `/out/prediction/get-dm-details`,
    method: "get",
    params,
  });
//预报列表-下载报关文件
export const predictionDownload = (params) =>
  request({
    url: `/out/prediction/download-declare-file`,
    method: "get",
    params,
  });

//预报列表-预览 或 下预报文件
export const predictionDpFile = (data) =>
  request({
    url: `/out/prediction/dp-prediction-file`,
    method: "post",
    data,
  });
//预报列表-更新监管方式
export const predictionUpdateRan = (data) =>
  request({
    url: `/out/prediction/update-ran`,
    method: "post",
    data,
  });
//预报列表-财务审核
export const predictionFinanceAudit = (data) =>
  request({
    url: `out/prediction/finance-audit`,
    method: "post",
    data,
  });
//预报列表-详情更改项号
export const predictionUpdateXno = (data) =>
  request({
    url: `/out/prediction/update-xno`,
    method: "post",
    data,
  });
